<template>
	<view class="u-content">
		<view class="adminlist" v-for="(item,index) in adminList" :key="index" @click="goDetails(item.itemCode)">
			<view class="text">{{item.itemName}}</view>
			<image src="../../static/back.png" mode=""></image>
		</view>
		<u-empty v-if="adminList.length==0" style="text-align: center;color: #fff;margin-top: 40%;" text="暂无数据"
			mode="list"></u-empty>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				adminList: [],
				ciAdminList: []
			}
		},
		onLoad(options) {
			console.log(options)
			uni.setNavigationBarTitle({
				title: options.title
			});
			this.serviceCsList(options.code)
		},
		methods: {
			goDetails(code) {
				console.log(code)
				this.$gopage('/pages/matter/baseInfo?itemCode=' + code)
			},
			serviceCsList(code) {
				this.$ajax({
					url: '/api/app/serviceCsItemList',
					noErrorMsg: true,
					method: 'get',
					data: {
						serviceObject: 1,
						organCode: code
					}
				}).then(res => {
					if (res.data.item == 0) {
						console.log('暂无数据')
					} else {
						this.adminList = res.data.item;
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	image {
		width: 6rpx;
		height: 36rpx;
	}

	.u-content {

		// position: absolute;
		// top: 0;
		// bottom: 0;
		// left: 0;
		// right: 0;
		// height: 100%;
		// overflow: hidden;
		.adminlist {
			display: flex;
			align-items: center;
			margin: 0 30rpx;
			border-bottom: 1rpx solid #f1f1f1;
padding: 30rpx 0;
			.text {
				
				font-size: 32rpx;
				color: #333333;
				overflow: hidden;
				display: -webkit-box;
				-webkit-line-clamp: 3;
				-webkit-box-orient: vertical;
				width: 600rpx;
			}

			image {
				// position: absolute;
				// right: 30rpx;
				margin-left: 50rpx;
				width: 16rpx;
				height: 26rpx;
			}
		}
	}
</style>
